package cn.rengy.web.framework.shiro.token;

import org.apache.shiro.authc.AuthenticationToken;
/**
 * 微信公众号登陆token
 * @author rengy
 *
 */
public class WechatToken implements AuthenticationToken{

	private static final long serialVersionUID = 1L;
	
	private String code;
	//private String state;
	private String appid;

	
	public WechatToken(String code, String appid) {
		this.code = code;
		//this.state = state;
		this.appid = appid;
	}

	public Object getPrincipal() {
        return code;
    }

    public Object getCredentials() {
        return code;
    }

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}


	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	/*public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}*/
    
}
